home *** CD-ROM | disk | FTP | other *** search
- NULL(3I) Last changed: 4-13-99
-
-
- NNAAMMEE
- NNUULLLL - Returns a disassociated pointer
-
- SSYYNNOOPPSSIISS
- NNUULLLL (([[MMOOLLDD==]_m_o_l_d]))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, IRIX systems
-
- CF90, MIPSpro 7 Fortran 90
-
- SSTTAANNDDAARRDDSS
- Fortran
-
- DDEESSCCRRIIPPTTIIOONN
- The NNUULLLL intrinsic function returns a disassociated pointer. It
- accepts the following argument:
-
- _m_o_l_d A pointer of any type. This is an optional argument. Its
- pointer association status can be undefined, disassociated,
- or associated. If its status is associated, the target need
- not be defined with a value.
-
- _m_o_l_d must be specified when a reference to NNUULLLL appears as
- an actual argument in a reference to a generic procedure if
- the type, type parameters, or rank is required to resolve
- the generic reference.
-
- This is a transformational function.
-
- RREETTUURRNN VVAALLUUEESS
- NNUULLLL returns a disassociated pointer. The pointer has no shape, but
- it does have rank.
-
- If _m_o_l_d is specified, the return value has the same characteristics as
- _m_o_l_d.
-
- If _m_o_l_d is not specified, the data type, type parameters, and rank of
- the result are determined by the pointer that becomes associated with
- the result, as follows:
-
- AAppppeeaarraannccee ooff NNUULLLL: RReessuulltt ttyyppee,, ttyyppee
- ppaarraammeetteerrss,, rraannkk::
-
- Right side of a pointer assignment Pointer on the left
- side
-
- Initialization for an object in a declaration The object
-
- Default initialization for a component The component
-
- In a structure constructor The corresponding
- component
-
- As an actual argument The corresponding
- dummy argument
-
- In a DATA statement The corresponding
- pointer object
-
- EEXXAAMMPPLLEESS
- INTERFACE GEN
- SUBROUTINE S1 (J, PI)
- INTEGER J
- INTEGER, POINTER :: PI
- END SUBROUTINE S1
- SUBROUTINE S2 (K, PR)
- INTEGER K
- REAL, POINTER :: PR
- END SUBROUTINE S2
- END INTERFACE
- REAL, POINTER :: REAL_PTR
- CALL GEN (7, NULL (REAL_PTR) ) ! INVOKE S2
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
- man page.
-